package com.hong.dubbo.consumer;

import com.hong.dubbo.api.HelloDubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by John on 2019/3/2.
 */
@Service
public class ClientService {

    @Autowired
    private HelloDubboService helloDubboService;

    public String callProvider(String name){
        return helloDubboService.sayHello(name);
    }

}
